package gu.sql2java.excel.aspect.spring;

import java.lang.reflect.Method;
import java.lang.reflect.Type;


public class ReturnInfo {
	/** 实际返回值 */
	public final Object returnValue;
	/** 实际调用的方法 */
	public final Method invokeMethod;
	/** 实际返回值类型 */
	public final Type returnType;
	
	public ReturnInfo(Object returnValue, Method invokeMethod) {
		super();
		this.returnValue = returnValue;
		this.invokeMethod = invokeMethod;
		this.returnType = invokeMethod.getGenericReturnType();
	}

	public ReturnInfo(Object returnValue, Method invokeMethod, Type returnType) {
		super();
		this.returnValue = returnValue;
		this.invokeMethod = invokeMethod;
		this.returnType = returnType;
	}
}
